package com.example.survey_determination.controller;

import com.example.survey_determination.service.WarrantyInfoDataService;
import entity.warranty_info_Date;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (WarrantyInfoData)表控制层
 *
 * @author makejava
 * @since 2022-01-12 17:42:10
 */
@CrossOrigin(methods = {RequestMethod.GET,RequestMethod.POST})
@RestController
@RequestMapping("warrantyInfoData")
public class WarrantyInfoDataController {
    /**
     * 服务对象
     */
    @Resource
    private WarrantyInfoDataService warrantyInfoDataService;


    @RequestMapping("queryById")
    public List<warranty_info_Date> queryById(String warranty_number) {
        return this.warrantyInfoDataService.queryById(warranty_number);
    }



}

